.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px;
  max-width: 1280px;
  margin: 0 auto;
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-item {
  position: relative;
  transition: all 0.3s ease;
}

.tool-item button {
  width: 100%;
  height: 180px;
  padding: 32px;
  border: none;
  border-radius: 28px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06),
              0 2px 12px rgba(0, 0, 0, 0.03),
              0 0 1px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.tool-item button:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(76, 175, 80, 0.15),
              0 8px 16px rgba(76, 175, 80, 0.1),
              0 0 2px rgba(76, 175, 80, 0.05);
  border-color: var(--accent-color);
}

.tool-item button i {
  font-size: 48px;
  color: var(--accent-color);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.2));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-item button span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: color 0.3s ease;
}

.tool-item button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.12),
    rgba(76, 175, 80, 0.04)
  );
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-item button:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(76, 175, 80, 0.18);
}

.tool-item button:hover::before {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-item button:hover::before {
  opacity: 1;
}

.tool-item i {
  font-size: 52px;
  color: #4caf50;
  margin-bottom: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(76, 175, 80, 0.08);
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.12);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-item span {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.tool-item:hover i {
  transform: scale(1.1);
  color: #45a049;
  background: rgba(76, 175, 80, 0.15);
}

.tool-item:hover span {
  color: #45a049;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 16px;
  }

  .tool-item button {
    height: 160px;
    padding: 24px;
  }

  .tool-item i {
    font-size: 40px;
    width: 70px;
    height: 70px;
    border-radius: 20px;
  }

  .tool-item span {
    font-size: 16px;
  }
}
